{{define "header"}}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <script type="text/javascript" src="/scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/scripts/gobbs.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/global.css" />
    <link rel="stylesheet" type="text/css" href="/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/css/gobbs.css" />
    <title>{{.BbsTitle}}</title>
    <meta name="description" content="go golang 编程论坛" />
    <meta name="Keywords" content="go golang 编程论坛 学习 代码 共享 开源" />
    
  </head>
  <body>
    <!-- 顶部链接 --> 
    <div id="topbar">
        <ul>
            <li><a href="/" title="首页">首页</a></li>
            <li><a href="/gobbs" title="论坛">论坛</a></li>
            <!--<li><a href="#" title="知识">知识</a></li>
            <li><a href="#" title="出版">出版</a></li>-->

            
            <li><a href="/help" title="帮助中心">帮助中心</a></li>
        </ul>
        <dl>
			<dd><a href="/user/action" title="用户行为">用户行为</a></dd>
			<dd><a href="/user/list" title="用户列表">用户列表</a></dd>
			<dd><a href="/group/list" title="用户等级">用户等级</a></dd>
            {{if eq .CheckIsAdmin 1 }}
            <dd><a href="/manage" title="论坛管理"  class="red b">论坛管理</a></dd>
            {{end}}
        </dl>
    </div>
    <!-- 头部信息 -->
    <div id="header">
        <div id="head">
            <h1 id="logo"><a href="/" title="Go编程社区">Go编程社区</a></h1>
            <div id="menutop">
                <div class="welcome">
                    <span id="login_title">
                        {{if have .SessUserID }}
                        <em class="b">{{.SessUserName}}</em> [<a href="#">{{if .SessUserID}}显身{{else}}隐身{{end}}</a>]  
                        <a href="#">我的帖子</a>
                        |
                        <a href="/self/info">我的设置</a>
                        |
                        [<a href="/user/logout" target="_parent">退出</a>]
                        {{else}}
						欢迎您，是<a href="/user/register">注册</a>，还是<a href="/user/login">登录</a>？

                        {{end}}
                    </span>
                </div>
                <div id="sform">
                    <form METHOD=POST ACTION="search?act=do">
                        <input onfocus="fcolor(this)" onblur="bcolor(this)" name="keyword" class="txt" type="text" value="输入关键词搜索" />
                        <input class="btn" type="image" src="/images/search01.gif" value="搜索" />
                        <a href="search"><img src="/images/search02.gif" /></a>
                    </form>
                </div>
            </div>
        </div>    
        <div id="infobox"></div>
    </div>
{{end}}
